package com.safety51.bootstrap.demo.domain.example;

import com.safety51.bootstrap.holiday.HolidayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by liuyuancheng on 2022/8/2  <br/>
 *
 * @author liuyuancheng
 */
@Service
public class HolidayExample {

    @Autowired
    private HolidayService holidayService;

    public boolean isTodayHoliday(){
        return holidayService.isHoliday(new Date());
    }

}
